function addImage(e) {
	var form = $('#cloneImageForm');
	var inporg = $('#imageUpload');
	var input = inporg.clone(true, true);
	inporg.before(input);
	inporg.removeAttr('id');
	input.attr('id', 'imageUpload');
	inporg.attr('name', 'archivo');
	form.append(inporg);
	// form.submit();
	form.ajaxForm({
		url : form.attr('action'),
		type : "post",
		success : function(data) {
			$('#image').attr("src", 'data:image/jpeg;base64,'+data);
			$('#imageFile').val(data);
			$('#deleteImage').show();
		},
		error : function(xhr, ajaxOptions, thrownError) {

		}

	}

	);
	form.submit();
	// inporg.remove();

}

function imageLoad(url) {
	var image = new Image();
	image.src = url;
	$('#image').html(image);
	$('#imageFile').val(image);
}

$(document).ready(function() {
	$('.ym-add').removeClass('ym-add');
});